package com.autumn.config.api.dto.input;

import javax.validation.constraints.NotNull;

/**
 * 应用
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2017-12-31 15:50:14
 */
public class ApplicationInfoDataSourceInput extends ConfigureInput {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5512128191960248563L;

	@NotNull(message = "应用 id 不能为空")
	private Long appId;

	@NotNull(message = "目标应用 id 不能为空")
	private Long targetAppId;

	@NotNull(message = "连接 id 不能为空")
	private Long connectionId;
	
	private Long id;

	/**
	 * 获取Id
	 * 
	 * @return
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取应用Id
	 * 
	 * @return
	 */
	public Long getAppId() {
		return appId;
	}

	/**
	 * 设置应用Id
	 * 
	 * @param appId
	 */
	public void setAppId(Long appId) {
		this.appId = appId;
	}

	/**
	 * 获取目标应用Id
	 * 
	 * @return
	 */
	public Long getTargetAppId() {
		return targetAppId;
	}

	/**
	 * 设置目标应用Id
	 * 
	 * @param targetAppId
	 *            目标应用Id
	 */
	public void setTargetAppId(Long targetAppId) {
		this.targetAppId = targetAppId;
	}

	/**
	 * 获取连接Id
	 * 
	 * @return
	 */
	public Long getConnectionId() {
		return connectionId;
	}

	/**
	 * 设置连接Id
	 * 
	 * @param connectionId
	 *            连接Id
	 */
	public void setConnectionId(Long connectionId) {
		this.connectionId = connectionId;
	}

}
